package com.idak.rdv.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.idak.rdv.dao.UserDao;
import com.idak.rdv.db.User;
import com.idak.rdv.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;

	public boolean authenticateUser(String login, String passwords) {
		return userDao.authenticateUser(login, passwords);
	}

	public User findUserByLogin(String login) {
		return userDao.findUserByLogin(login);
	}

	public boolean checkLogin(String login) {
		return userDao.checkLogin(login);
	}

}
